﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:RawExplorer2.UI" x:Class="TestForm"
    Title="TestForm" Height="300" Width="300">
    <DataGrid Margin="20,0,0,0"
                                  AlternationCount="2"
                                  AutoGenerateColumns="False"
                                  CanUserAddRows="{Binding Path=CanAddArguments,
                                                           Mode=OneWay}"
                                  ItemsSource="{Binding Path=Arguments}"
                                  RowHeaderWidth="0"
                                  HorizontalAlignment="Stretch">
        <DataGrid.Resources>
            <SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="{x:Static SystemColors.HighlightColor}" />
            <SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightTextBrushKey}" Color="{x:Static SystemColors.HighlightTextColor}" />
        </DataGrid.Resources>
        <DataGrid.Columns>
            <DataGridTemplateColumn Width="100" Header="Name">
                <DataGridTemplateColumn.CellTemplate>
                    <DataTemplate>
                        <TextBlock VerticalAlignment="Center"
                                                       Padding="3"
                                                       Text="{Binding Path=Name}" />
                    </DataTemplate>
                </DataGridTemplateColumn.CellTemplate>
            </DataGridTemplateColumn>
            <DataGridTemplateColumn Width="100" Header="Type">
                <DataGridTemplateColumn.CellTemplate>
                    <DataTemplate>
                        <TextBlock VerticalAlignment="Center"
                                                       Padding="3"
                                                       Text="{Binding Path=Type}" />
                    </DataTemplate>
                </DataGridTemplateColumn.CellTemplate>
            </DataGridTemplateColumn>
            <DataGridTemplateColumn Width="*"
                                                        MinWidth="200"
                                                        Header="Value" />
        </DataGrid.Columns>
    </DataGrid>
</Window>
